import Vue from 'vue'

Vue.directive('err', {
  bind (el, binding) {
    el.onerror = function () {
      el.src = require('../assets/common/img.jpeg')
    }
  }
})

Vue.directive('errplus', {
  bind (el, binding) {
    el.onerror = function () {
      el.src = binding.value
    }
  }
})
